package com.shanshan.wheel.rpc.common.exception;

/**
 * @Description Rpc异常类
 * @ClassName RpcException
 * @Author 山山大魔王
 * @Date 2022/9/4 12:27
 * @Version 1.0
 */
public class RpcException extends RuntimeException{

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public RpcException(RpcErrorMessage rpcErrorMessageEnum){
        super(rpcErrorMessageEnum.getMessage());
    }

    public RpcException(RpcErrorMessage rpcErrorMessageEnum , String detail){
        super(rpcErrorMessageEnum.getMessage() + ":" + detail);
    }


}
